package com.ocom.webapi.feign;

import com.ocom.common.constant.MqPay;
import com.ocom.common.request.payconfig.AddSubsidyDataByPersonRequest;
import com.ocom.common.request.payconfig.CouponsDataExportRequest;
import com.ocom.common.request.payconfig.SubsidyDataRequest;
import com.ocom.common.request.payconfig.SubsidyListRequest;
import com.ocom.common.request.web.GetConsPerReportsRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.GrantSubsidyVo;
import com.ocom.common.vo.payconfig.FeeDataListVo;
import com.ocom.common.vo.webapi.ExcelCouponsVoucherListVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mq-subsidy")
public interface MqSubsidyClientService {

    @PostMapping(MqPay.URL_grantSubsidy)
    public Result grantSubsidy(@RequestBody GrantSubsidyVo grantSubsidyVo);

    /**
     *  补贴计划列表
     */
    @PostMapping(MqPay.URL_subsidyList)
    public Result subsidyList(@RequestBody SubsidyListRequest subsidyListRequest);

    /**
     *  补贴计划列表
     */
    @PostMapping(MqPay.URL_subsidyData)
    public Result subsidyData(@RequestBody SubsidyDataRequest subsidyDataRequest);

    //3.14消费券数据导出（ couponsData/export）
    @PostMapping(MqPay.URL_couponsDataExport)
    public Result couponsDataExport(@RequestBody CouponsDataExportRequest request);

    @PostMapping(MqPay.URL_subsidyDataaddPerson)
    public Result subsidyDataAddPerson(@RequestBody AddSubsidyDataByPersonRequest addSubsidyDataByPersonRequest);

    @PostMapping(MqPay.URL_ConsPerReportsDataExport)
    public Result consPerReportsDataExport(@RequestBody GetConsPerReportsRequest getConsPerReportsRequest);

    @PostMapping(MqPay.URL_importFeeDetail)
    Result importFeeDetail(@RequestBody FeeDataListVo request);
    @PostMapping(MqPay.URL_feeDataExport)
    Result feeDataExport(@RequestBody FeeDataListVo request);

    @PostMapping(MqPay.URL_importCouponsVoucher)
    Result importCouponsVoucher(@RequestBody ExcelCouponsVoucherListVo request);
}
